#!/bin/env python
# -*- coding:utf-8
"""
@author:xingz
@file:zx_sd.py
@time:2022/05/09
"""
import matplotlib.pyplot as plt
import numpy as np


def f(x, y):
    return np.sin(np.sqrt(x ** 2 + y ** 2))


x = np.linspace(-6, 6, 30)
y = np.linspace(-6, 6, 30)

X, Y = np.meshgrid(x, y)
Z = f(X, Y)
fig = plt.figure()
ax = plt.axes(projection='3d')

ax.plot_wireframe(X, Y, Z, color='black')
ax.set_title('wireframe')
plt.show()
